#ifndef SHOWFINDUPDATERY_H_
#define SHOWFINDUPDATERY_H_

#include "Category.h"
#include "Product.h"
#include "Cart_item.h"
#include "Cart.h"
#include <vector>

using namespace std;

class ShowFindUpdateRY {
	public:
		static void show_cats(vector<Category> pCats, vector<Product> pProds);
		static void find(vector<Cart_item> pCart_items, vector<Product> pProds);
		static void update(vector<Category> pCats, vector<Product> *pProds);
	private:
		static bool comp(Category pCat1, Category pCat2);
		static int countProdNumber(vector<Product> pProds, int pCatId);
		static bool isExist(vector<Category> pCats, int pCatId);
		static int countSaleNumber(vector<Cart_item> pCart_items, int pProd_id);
};

#endif //SHOWFINDUPDATERY_H_